WpAssetCleanUp\OptimiseAssets\OptimizeJs D

Total Complexity 327
Dependencies 16
Dependents 8
Total lines 1,355
Lines of code 822
Logical lines of code 536
Comment lines 284
Methods 20
Properties 0

Methods 20

Method Rating Maintainability Complexity Lines of code
maybeOptimizeIt()
D
22
60 157
isOptimizeJsEnabledByOtherParty()
D
30 53 87
updateHtmlSourceOriginalToOptimizedJs()
D
28
42 113
alterHtmlSource()
C
37 25 65
getInlineAssociatedWithScriptHandle()
B
41 20 50
prepareOptimizeList()
B
43 18 43
generateInlineAssocHtmlForHandle()
B
42 16 51
moveInlinejQueryAfterjQuerySrc()
A
43 16 44
maybeAlterContentForInlineScriptTag()
A
44 16 40
updateOriginalToOptimizedTag()
A
47 11 31
ignoreDependencyRuleAndKeepChildrenLoaded()
A
49 11 29
getScriptTagFromHandle()
A
52 9 24
maybeAlterContentForJsFile()
A
54 8 19
stripAnyReferencesForUnloadedScripts()
S
57 7 15
getScriptTagsFromSrcs()
S
57 5 15
isWorthCheckingForOptimization()
S
70 4 6
maybeDoJsFixes()
S
57 2 16
strReplaceOnce()
S
68 2 7
getRelPathJsCacheDir()
S
79 1 3
init()
S
69 1 7